package com.example.yk_lx.addmember;

import androidx.lifecycle.MutableLiveData;

import com.example.yk_lx.baseMVVM.BaseViewModel;

public class AddmemberViewModel extends BaseViewModel<AddmemberRepo> {
    @Override
    protected AddmemberRepo createRepo() {
        return new AddmemberRepo();
    }
    public MutableLiveData<String> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void addmember(String groupId,String[] members){
        repo.addmember(groupId,members,success,fail);
    }
}
